
export class HomeActivitySetting {
    id: number;
    poster_id: number;
    banner_id: number;
    good_left_id: number;
    good_right_id: number;
    goods_list_id: number;
    new_people_status: boolean;
    split_layout_status: boolean;
    banner_status: boolean;
    goods_list_status: boolean;

    constructor() {
    }

    getFieldTypeMap():  Map<string, string> {
        let fieldTypeMap = new Map<string, string>();
        fieldTypeMap.set('id', 'Integer');
        fieldTypeMap.set('poster_id', 'Integer');
        fieldTypeMap.set('banner_id', 'Integer');
        fieldTypeMap.set('good_left_id', 'Integer');
        fieldTypeMap.set('good_right_id', 'Integer');
        fieldTypeMap.set('goods_list_id', 'Integer');
        fieldTypeMap.set('new_people_status', 'Boolean');
        fieldTypeMap.set('split_layout_status', 'Boolean');
        fieldTypeMap.set('banner_status', 'Boolean');
        fieldTypeMap.set('goods_list_status', 'Boolean');
        return fieldTypeMap;
    }

    getClassName(): string {
        return 'home_activity_setting';
    }

    getPrimaryKeyList(): string[] {
        let primaryKeyList: string[] = [];
        primaryKeyList.push('id');
        return primaryKeyList;
    }

    getIndexList(): string[] {
        let indexList: string[] = [];
        indexList.push('id');
        return indexList;
    }

    getEncryptedFieldList(): string[] {
        let encryptedFieldList: string[] = [];
        return encryptedFieldList;
    }

    setId(id: number): void {
        this.id = id;
    }

    getId(): number  {
        return this.id;
    }

    setPoster_id(poster_id: number): void {
        this.poster_id = poster_id;
    }

    getPoster_id(): number  {
        return this.poster_id;
    }

    setBanner_id(banner_id: number): void {
        this.banner_id = banner_id;
    }

    getBanner_id(): number  {
        return this.banner_id;
    }

    setGood_left_id(good_left_id: number): void {
        this.good_left_id = good_left_id;
    }

    getGood_left_id(): number  {
        return this.good_left_id;
    }

    setGood_right_id(good_right_id: number): void {
        this.good_right_id = good_right_id;
    }

    getGood_right_id(): number  {
        return this.good_right_id;
    }

    setGoods_list_id(goods_list_id: number): void {
        this.goods_list_id = goods_list_id;
    }

    getGoods_list_id(): number  {
        return this.goods_list_id;
    }

    setNew_people_status(new_people_status: boolean): void {
        this.new_people_status = new_people_status;
    }

    getNew_people_status(): boolean  {
        return this.new_people_status;
    }

    setSplit_layout_status(split_layout_status: boolean): void {
        this.split_layout_status = split_layout_status;
    }

    getSplit_layout_status(): boolean  {
        return this.split_layout_status;
    }

    setBanner_status(banner_status: boolean): void {
        this.banner_status = banner_status;
    }

    getBanner_status(): boolean  {
        return this.banner_status;
    }

    setGoods_list_status(goods_list_status: boolean): void {
        this.goods_list_status = goods_list_status;
    }

    getGoods_list_status(): boolean  {
        return this.goods_list_status;
    }

    static parseFrom(inputObject: any): HomeActivitySetting {
        let result = new HomeActivitySetting();
        if (!inputObject) {
            return result;
        }
        if (inputObject.id) {
            result.id = inputObject.id;
        }
        if (inputObject.poster_id) {
            result.poster_id = inputObject.poster_id;
        }
        if (inputObject.banner_id) {
            result.banner_id = inputObject.banner_id;
        }
        if (inputObject.good_left_id) {
            result.good_left_id = inputObject.good_left_id;
        }
        if (inputObject.good_right_id) {
            result.good_right_id = inputObject.good_right_id;
        }
        if (inputObject.goods_list_id) {
            result.goods_list_id = inputObject.goods_list_id;
        }
        if (inputObject.new_people_status) {
            result.new_people_status = inputObject.new_people_status;
        }
        if (inputObject.split_layout_status) {
            result.split_layout_status = inputObject.split_layout_status;
        }
        if (inputObject.banner_status) {
            result.banner_status = inputObject.banner_status;
        }
        if (inputObject.goods_list_status) {
            result.goods_list_status = inputObject.goods_list_status;
        }
        return result;
    }
}
